<%--
  Created by IntelliJ IDEA.
  User: xianfei
  Date: 15-9-2
  Time: 上午10:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<html>
<head>
    <title>短信模版管理</title>
    <script>
        function addModel() {
            window.location.href = "/note/model_before_update"
        }
    </script>
</head>
<body>
<div>
    <button type="button" class="btn btn-primary" onclick="addModel()" title="添加模版">新增</button>
    <table class="table table-striped">
        <thead>
        <th>全选</th>
        <th>模版标题</th>
        <th width="70%">模版内容</th>
        <th>操作</th>
        </thead>
        <tbody>
        <c:forEach items="${messageModelDTOs}" var="model">
            <tr>
                <td><input type="checkbox" value="${model.guid}"></td>
                <td>${model.name}</td>
                <td>${model.value}</td>
                <td><a class="btn btn-info" href="/note/model_before_update?modelGuid=${model.guid}">修改</a>&nbsp;<a
                        class="btn btn-info" href="/note/model_del/${model.guid}">删除</a></td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
</div>
</body>
</html>